package com.indexingsystem.boss.admin.mapper;

import com.indexingsystem.boss.Vo.IdxSynonymListVo;
import com.indexingsystem.boss.Vo.IdxSynonymReqVo;
import com.indexingsystem.boss.entity.IdxSynonym;

import java.util.List;

public interface IdxSynonymMapper {
    int deleteByPrimaryKey(String synonymId);

    int insert(IdxSynonym record);

    int insertSelective(IdxSynonym record);

    IdxSynonym selectByPrimaryKey(String synonymId);

    int updateByPrimaryKeySelective(IdxSynonym record);

    int updateByPrimaryKey(IdxSynonym record);


    /**
     * 分页查询同义词列表
     * @param idxSynonymReqVo
     * @return
     */
    List<IdxSynonymListVo> selectIdxSynonyml(IdxSynonymReqVo idxSynonymReqVo);


    /**
     * 分页查询同义词列表数量
     * @param idxSynonymReqVo
     * @return
     */
    Integer selectIdxSynonymlCount(IdxSynonymReqVo idxSynonymReqVo);

    /**
     * 批量删除同义词列表
     * @param id
     * @return
     */
    Integer deleteByIdBatch(List<String> id);
    /**
     * 批量启用和禁用同义词
     * @param id
     * @return
     */
	Integer updateSynonymStatusByIdBatch(List<IdxSynonym> synonymsList);

    Integer selectCountByIds(List<String> ids);
}